#ifndef	__CODETHREAD_H__
#define __CODETHREAD_H__
#include "jthread.h"
#include "jmutex.h"
#include "CodeProcess.h"
class CodeProcess;
class CodeThread:private JThread
{
public:

	CodeThread(CodeProcess &codeprocess);
	CodeThread();
	~CodeThread();
	int Start();
	void Stop();
private:
	void *Thread();
	bool stop;
	JMutex stopmutex;
	CodeProcess &code;
	
}; 
#endif